package com.bang.study.decorate;

/**
 * @ClassName: ShapeDecorator
 * @author: BANG
 * @Date: 2019/10/29 11:27
 * @Version: 1.0
 * @Modified By:
 * @Desc: 装饰器
 */
public abstract class ShapeDecorator implements Shape{

    protected Shape decorateShape;

    public ShapeDecorator(Shape decorateShape) {
        this.decorateShape = decorateShape;
    }

    @Override
    public void draw() {
        decorateShape.draw();
    }
}
